package com.edwin.ws.restfulservice;

import javax.ws.rs.FormParam;
import javax.ws.rs.GET;
import javax.ws.rs.POST;
import javax.ws.rs.Path;
import javax.ws.rs.PathParam;
import javax.ws.rs.Produces;
import javax.ws.rs.QueryParam;
import javax.ws.rs.core.MediaType;


public interface RestfulServiceSample {
//	使用查询传参数方法
	@GET
	@Path("/addRestfulServiceQuery")
	@Produces(MediaType.APPLICATION_JSON)
	public String addRestfulServiceQuery(@QueryParam("num1") int num1,@QueryParam("num2") int num2);
	
	@GET
	@Path("/addRestfulServicePath/{num1}/{num2}")
	@Produces(MediaType.APPLICATION_JSON)
	public String addRestfulServicePath(@PathParam("num1") int num1,@PathParam("num2") int num2);
	
	@POST
	@Path("/addRestfulServicePost")
	@Produces(MediaType.APPLICATION_JSON)
	public String addRestfulServicePost(@FormParam("num1") int num1,@FormParam("num2") int num2);
}
